package com.ktjy.mapper;

import com.ktjy.pojo.Movie;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface MovieMapper {


    public List<Movie> selectMovie(@Param("movieName") String movieName,
                                         @Param("pageBegin") Integer pageBegin,
                                         @Param("pageSize") Integer pageSize);

    public int count(@Param("movieName") String movieName);

    public int insertMovie(Movie movie);
    public Movie selectMovieById(@Param("movieId") Integer movieId);

    public int updateMovie(Movie movie);

    public int deleteMovie(@Param("movieId") Integer movieId);
}
